﻿using System;
namespace Gx.Model.Role
{
    public partial class M_UserInfo
    {
        private int _userid;
        private string _userlogin;
        private string _userpwd;
        private int _roleid;
        private string _username;
        private int _status;
        private int _adduser;
        private DateTime _addtime;
        private int _lastedituser;
        private DateTime _lastedittime;
        public int UserId
        {
            get
            {
                return _userid;
            }
            set { _userid = value; }
        }
        public string UserLogin
        {
            get
            {
                if (_userlogin == null)
                {
                    return "";
                }
                return _userlogin;
            }
            set { _userlogin = value; }
        }
        public string UserPwd
        {
            get
            {
                if (_userpwd == null)
                {
                    return "";
                }
                return _userpwd;
            }
            set { _userpwd = value; }
        }
        public int RoleId
        {
            get
            {
                return _roleid;
            }
            set { _roleid = value; }
        }
        public string UserName
        {
            get
            {
                if (_username == null)
                {
                    return "";
                }
                return _username;
            }
            set { _username = value; }
        }
        public int Status
        {
            get
            {
                return _status;
            }
            set { _status = value; }
        }
        public int AddUser
        {
            get
            {
                return _adduser;
            }
            set { _adduser = value; }
        }
        public DateTime AddTime
        {
            get
            {
                if (_addtime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _addtime;
            }
            set { _addtime = value; }
        }
        public int LastEditUser
        {
            get
            {
                return _lastedituser;
            }
            set { _lastedituser = value; }
        }
        public DateTime LastEditTime
        {
            get
            {
                if (_lastedittime == DateTime.MinValue)
                {
                    return DateTime.Parse("1911-01-01");
                }
                return _lastedittime;
            }
            set { _lastedittime = value; }
        }
    }

    public partial class M_UserInfo
    {
        public string RoleName { get; set; }
    }
}
